﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlackAndWhiteBalance
{
    public static class DotSystem
    {
        public static int numDots = (Const.PlayAreaDotHeight * Const.PlayAreaDotWidth) / 2;
        public static int NumDots
        {
            set
            {
                if (value < 0)
                    DotSystem.numDots = 0;
                else if (value > MaxDots)
                    DotSystem.numDots = MaxDots;
                else
                    DotSystem.numDots = value; 
            }
        }

        public static int MaxDots { get { return Const.PlayAreaDotWidth * Const.PlayAreaDotHeight; } }
    }
}
